package com.freud.framework.bean;

import java.sql.Timestamp;

import com.freud.framework.util.DateUtil;

public class BaseBean {

	private Timestamp operateDate;

	private String operateViewDate;

	public Timestamp getOperateDate() {
		return operateDate;
	}

	public void setOperateDate(Timestamp operateDate) {
		this.operateDate = operateDate;
	}

	public String getOperateViewDate() {
		if (operateDate != null) {
			return DateUtil.timestamp2String(operateDate, DateUtil.PATTERN_STANDARD);
		}
		return operateViewDate;
	}

	public void setOperateViewDate(String operateViewDate) {
		this.operateViewDate = operateViewDate;
	}

}
